<template>
    <view>
        <uni-card :title="news.title" extra="審核不通過">
            <view>笔记：</view>
            <view>
                <view>{{ news.note.title }}</view>
                <view>{{ news.note.content }}</view>
                <image class="w-full h-40" v-if="news.note.carousel.length > 0" :src="news.note.carousel[0]"
                    mode="aspectFill" />
            </view>
            <view class="uni-mt-4">原因：</view>
            <view>
                {{ news.content }}
            </view>
            <view class="text-gray-500 text-right">{{ news.createdAt }}</view>
        </uni-card>
    </view>
</template>
<script>
export default ({
    data() {
        return {
            news: {}
        }
    },
    onLoad(options) {
        this.news = JSON.parse(options.news)
        console.log(this.news)
    }
})
</script>